package org.ruoyi.aibox.domain.bo;

import org.ruoyi.common.core.validate.AddGroup;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.aibox.domain.DocAuditLog;
import org.ruoyi.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 文档审核日志业务对象 doc_audit_log
 *
 * @author xpeter
 * @date 2025-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DocAuditLog.class, reverseConvertGenerate = false)
public class DocAuditLogBo extends BaseEntity {

    /**
     * 日志ID
     */
    @NotNull(message = "日志ID不能为空", groups = { EditGroup.class })
    private Long logId;

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 操作类型
     */
    @NotBlank(message = "操作类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operationType;

    /**
     * 操作内容
     */
    @NotBlank(message = "操作内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operationContent;

    /**
     * 操作时间
     */
    @NotNull(message = "操作时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date operationTime;

    /**
     * 操作IP
     */
    @NotBlank(message = "操作IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operationIp;

    /**
     * 状态（0成功 1失败）
     */
    @NotBlank(message = "状态（0成功 1失败）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
